package com.yhny.lykj.yuhannongye.model;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

/**
 * 购物车
 * Created by lc on 2016/4/6.
 */
public class CarListModel extends BaseModel {
    @SerializedName("data")
    public List<ListEntity> list;


    public static class ListEntity implements Serializable{
        @SerializedName("goods")
        public List<GoodsListEntity> goodslist;

        private boolean isChoosed;

        public boolean isChoosed()
        {
            return isChoosed;
        }

        public void setChoosed(boolean isChoosed)
        {
            this.isChoosed = isChoosed;
        }



        public static class GoodsListEntity implements Serializable{
            @SerializedName("shippingid")
            public String id;
            @SerializedName("goodsnum")
            public int goods_nums;

            @SerializedName("goodsid")
            public String goods_name;

            @SerializedName("goodspay")
            public double goods_price;//现金价格
            @SerializedName("shipstate")
            public double shipstate;//现金价格
            @SerializedName("userid")
            public double userid;//现金价格
            @SerializedName("isdel")
            public double isdel;//现金价格
            @SerializedName("ordernumber")
            public double ordernumber;//现金价格
            @SerializedName("goodspic")
            public String goods_img;


            @SerializedName("price")
            public double price;

            @SerializedName("unit")
            public String unit;




            public Boolean isCheck = false;
            private boolean isChoosed;

            public boolean isChoosed()
            {
                return isChoosed;
            }

            public void setChoosed(boolean isChoosed)
            {
                this.isChoosed = isChoosed;
            }
            @Override
            public String toString() {
                return super.toString();
            }
        }
    }





}
